package com.liang.threaddemo5;

public class Demo {
    public static void main(String[] args) {
        Ticket tk = new Ticket();

        Thread tr1 = new Thread(tk);
        Thread tr2 = new Thread(tk);
        Thread tr3 = new Thread(tk);

        tr1.setName("窗口一");
        tr2.setName("窗口二");
        tr3.setName("窗口三");

        tr1.start();
        tr2.start();
        tr3.start();
    }
}
